﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace TMS.Infrastructrue.Migrations
{
    public partial class 身份证改为string : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<string>(
                name: "identity_number",
                table: "students",
                type: "character varying(20000)",
                maxLength: 20000,
                nullable: true,
                oldClrType: typeof(long),
                oldType: "bigint",
                oldMaxLength: 20000);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<long>(
                name: "identity_number",
                table: "students",
                type: "bigint",
                maxLength: 20000,
                nullable: false,
                defaultValue: 0L,
                oldClrType: typeof(string),
                oldType: "character varying(20000)",
                oldMaxLength: 20000,
                oldNullable: true);
        }
    }
}
